package meconsea.life.cms.accessor;

import java.util.ArrayList;
import java.util.List;

import meconsea.life.cms.entity.SArticle;
import meconsea.life.sys.accessor.BaseAccessor;
import meconsea.life.sys.accessor.IAccessor;

import com.google.inject.name.Named;
import com.wideplay.warp.persist.dao.Finder;
import com.wideplay.warp.persist.dao.FirstResult;
import com.wideplay.warp.persist.dao.MaxResults;

public class SArticleAccessor extends BaseAccessor<meconsea.life.cms.entity.SArticle, String> implements
		IAccessor<SArticle, String> {
	public SArticleAccessor(){
		super(SArticle.class);
	}

	@Finder(namedQuery = SArticle.LIST_ART_CLASS)
	public List<SArticle> getArtByClass(@Named("artClass") String artClass, @FirstResult int first , @MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = SArticle.LIST_ART_CLASS_PATH)
	public List<SArticle> getArtByClassPath(@Named("artClassPath") String artClassPath, @FirstResult int first , @MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = SArticle.LIST_ART_CLICKS)
	public List<SArticle> getArtByClicks(@FirstResult int first , @MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = SArticle.LIST_ART_COMMEND)
	public List<SArticle> getArtByCommend(@Named("commend") int commend,@FirstResult int first,@MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = SArticle.LIST_ART_HOT)
	public List<SArticle> getArtByHot(@Named("hot") int hot,@FirstResult int first,@MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = SArticle.LIST_ART_NEW)
	public List<SArticle> getArtNew(@FirstResult int first,@MaxResults int max){
		return null;
	}
	@Finder(namedQuery = SArticle.LIST_ART_KEYWORDS)
	public List<SArticle> getArtByKeywords(@Named("keywords") String keywords, @FirstResult int first, @MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = SArticle.LIST_ART_TITLE_LIKE)
	public List getArtByTitle(@Named("title") String title,@FirstResult int first,@MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = SArticle.LIST_ART_CLASS_ALL)
	public List getArtByClsAll(@Named("artClass") String artClass,@FirstResult int first,@MaxResults int max){
		return null;
	}
	@Finder(namedQuery = SArticle.COUNT_ART_CLASS)
	public int getCountByCls(@Named("artClass") String artClass){
		return 0;
	}
	
	@Finder(namedQuery = SArticle.HEADER_ART_CLASS)
	public List<SArticle> getHeaderArt(@Named("isHeader") Integer isHeader,@FirstResult int first,@MaxResults int max){
		return null;
	}
	
	public List<SArticle> getArtByJSON(String sqlJSON){
		List<SArticle> ls = new ArrayList<SArticle>();
		
		return ls;
	}
}
